package com.mjh.zhujianju.enums;

/**
 * 
 * @ClassName: SupervisionScheduleEnum
 * @Description
 * @author wangdong
 * @date 2018年8月28日 下午8:43:47
 * @version V1.0 督办进度
 */
public enum SupervisionScheduleEnum {

	no_start("1", "等待受理"), 
	startIng("2", "进展中"),
	endIng("3", "已完成");
	private String code;
	private String name;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	SupervisionScheduleEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public static SupervisionScheduleEnum[] getEnums() {
		return SupervisionScheduleEnum.values();
	}

	public static String getName(String code) {
		if (code == null) {
			return null;
		}

		for (SupervisionScheduleEnum s : SupervisionScheduleEnum.values()) {
			if (code.equals(s.getCode())) {
				return s.getName();
			}
		}

		return null;
	}
}
